# @Author: Eric Ito
# @Date: 1/25/2009
# Project Euler problem 5

"""
What is the smallest # that is evenly divisible 
by all # from 1-20
"""

#2432902008176640000
# 121645100408832000
def isDivisible(i):
	if i % 19 == 0 and i % 18 == 0 \
		and i % 17 == 0 and i % 16 == 0 and  i % 15 == 0 \
		and i % 14 == 0 and i % 13 == 0 and  i % 12 == 0 \
		and i % 11 == 0 and i % 10 == 0 and  i % 9 == 0 \
		and i % 8 == 0 and i % 7 == 0 and  i % 6 == 0 \
		and i % 5 == 0 and i % 4 == 0 and  i % 3 == 0 \
		and i % 2 == 0 and i % 1 == 0:
		return True
	else:
		return False

def main():
	i = 20
	while 1:
		print i
		if isDivisible(i):
			print i
			return
		i += 20
	
if __name__ == "__main__":
	main()